package entity;

import server.HttpServlet;

/**
 * 封装Wrapper表示具体实现了servlet接口的类的信息及对象
 */
public class Wrapper {
    //servlet的全限定名  对应web.xml的servlet-class
    private String servletClassName;
    //servlet的子类对象
    private HttpServlet instance;
    //请求的路径
    private String urlPattern; //对应servletmapping的url-pattern
    private String name;

    public String getServletClassName() {
        return servletClassName;
    }

    public void setServletClassName(String servletClassName) {
        this.servletClassName = servletClassName;
    }

    public HttpServlet getInstance() {
        return instance;
    }

    public void setInstance(HttpServlet instance) {
        this.instance = instance;
    }

    public String getUrlPattern() {
        return urlPattern;
    }

    public void setUrlPattern(String urlPattern) {
        this.urlPattern = urlPattern;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}

/*import java.util.Map;

public class Wrapper {
    private Map<String, Class> path;

    public Map<String, Class> getPath() {
        return path;
    }

    public void setPath(Map<String, Class> path) {
        this.path = path;
    }
}*/
